how to change the array [1,2,3,4] to [1,3,4]

Posted by zjm1126 on Stack Overflow See other posts from Stack Overflow or by zjm1126
Published on 2010-04-05T08:30:41Z Indexed on 2010/04/05 8:33 UTC
Read the original article Hit count: 148

Filed under:

any simply way ?

this is my code:

var a=[1,2,3,4]
        a.slice(0,1)
        alert( a)

and it print [1,2,3,4]

thanks

© Stack Overflow or respective owner

Related posts about JavaScript